package com.hyphenate.easeui.utils;

import android.content.Context;

/**
 * Created by 李宗源 on 2017/3/8.
 */

public class ScreenUtil {
    public static int dpToPixel(float dp, Context context) {
        return (int) (dp * context.getResources().getDisplayMetrics().density + 0.5f);
    }
}
